package com.youcash.ZyWallet_spring.dao;

import com.youcash.ZyWallet_spring.entity.LoansType;
import com.youcash.ZyWallet_spring.general.GeneralDAO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface LoansTypeMapper extends GeneralDAO<LoansType> {

    public int updateStatusById(@Param("id") int id,
                                @Param("status") int status);

    public int updateInfoById(@Param("id") int id,
                              @Param("loans") String loans,
                              @Param("deadline") String deadline,
                              @Param("quota") String quota,
                              @Param("apr") String apr,
                              @Param("description") String description,
                              @Param("introduction") String introduction,
                              @Param("updatetime") String updatetime);

}